| Conditions | 3 |
| Paths | 3 |
| Total Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 2 |
| CRAP Score | 6.28 |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | import components from './components'; |
||
| 5 | 16 | export function install(Vue, options = {}) { |
|
| 6 | for (var key in components) { |
||
| 7 | 4 | if (components.hasOwnProperty(key)) { |
|
| 8 | Vue.component(key, components[key]); |
||
| 9 | } |
||
| 10 | } |
||
| 11 | |||
| 12 | let commentsStore = new Vuex.Store(store); |
||
| 13 | commentsStore.commit('setConfig', options); |
||
| 14 | |||
| 15 | Vue.prototype.$commentsStore = commentsStore; |
||
| 16 | } |
||
| 17 |